* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Afacad', sans-serif;
    padding-top: 50px;
    background-color: #9D4008;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 响应式调整 body padding */
@media screen and (max-width: 768px) {
    body {
        padding-top: 45px;
    }
}

@media screen and (max-width: 430px) {
    body {
        padding-top: 40px;
    }
}

/* 导航栏基础样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 15px;
    background-color: #FFFDF8;
    border-bottom: 2px solid #A0522D;
    height: 50px;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Logo 样式 */
.logo img {
    width: 125px;
    height: 50px;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    gap: 50px;
    font-family: "Modak", Helvetica;
    font-weight: 400;
    color: #9d4008;
    font-size: 15px;
    letter-spacing: 0.4px;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-links a {
    text-decoration: none;
    color: #9D4008;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hamburger 按钮基础样式 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-right: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #9D4008;
    transition: all 0.3s ease-in-out;
    border-radius: 1.5px;
}

/* Hamburger 动画效果 */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 44px;
        left: 0;
        width: 100%;
        height: calc(100vh - 44px);
        background-color: #FFFDF8;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 20px 0;
        z-index: 999;
        transition: all 0.3s ease-in-out;
        border-top: 1px solid rgba(157, 64, 8, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 20px 0;
        width: 80%;
        max-width: 300px;
        text-align: center;
        border-bottom: 1px solid rgba(157, 64, 8, 0.2);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(157, 64, 8, 0.05);
        transform: translateY(-2px);
        color: #c2500a;
    }

    /* 移动端不显示下划线效果 */
    .nav-links a::after {
        display: none;
    }
}

/* 更小屏幕的样式 */
@media (max-width: 430px) {
    .hamburger {
        width: 25px;
        height: 20px;
    }

    .hamburger span {
        height: 2.5px;
    }

    /* 调整小屏幕下的动画效果 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-links {
        top: 39px;
        height: calc(100vh - 39px);
    }
}

/* 设置三条线的位置 */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

/* Hover 效果 */
.nav-links a:hover {
    color: #c2500a;
    transform: translateY(-2px);
}

/* 添加下划线效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9D4008;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section 基础样式 */
.hero-section {
    position: relative;
    width: 100%;
    max-width: auto;
    margin: 23px auto 0;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
    z-index: 1;
}

.BrownFrame {
    width: 100%;
    padding-top: 56.7%;
    background: #9D4008;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.HeroImages {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97%;
    max-width: auto;
    height: auto;
    border-radius: 4.2vw;
    object-fit: cover;
    opacity: 0;
    animation: scaleIn 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

/* 手机端响应式 */
@media screen and (max-width: 430px) {
    body {
        padding-top: 40px;
    }
}

/* 动画键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .navbar {
        height: 45px;
        padding: 0 20px 0 10px;
    }

    .logo img {
        width: 100px;
        height: 40px;
    }

    body {
        padding-top: 45px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* 确保画在手机端也正常工作 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 航链接的基础样式 */
.nav-links a {
    text-decoration: none;
    color: #9D4008;
    transition: all 0.3s ease;  /* 添加过渡效果 */
    position: relative;  /* 为下划效果 */
    padding: 5px 0;  /* 添加一些内边距 */
}

/* Hover 效果 */
.nav-links a:hover {
    color: #c2500a;  /* 稍微变亮的颜色 */
    transform: translateY(-2px);  /* 轻微上移 */
}

/* 添加下划效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9D4008;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单的 hover 效果 */
@media screen and (min-width:431px)and(max-width: 917px) {
    .nav-links a {
        padding: 15px 0;
        width: 80%;
        max-width: 300px;
        text-align: center;
        border-bottom: 1px solid rgba(157, 64, 8, 0.2);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(157, 64, 8, 0.05);  /* 添加背景色变化 */
        transform: translateY(-2px);  /* 保持轻微上移效果 */
        color: #c2500a;
    }

    /* 移动端不显示下划线效果 */
    .nav-links a::after {
        display: none;
    }
}

.HeroImages{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97%;
    max-width: auto;
    height: auto;
    border-radius: 4.2vw;
    object-fit: cover;
    opacity: 0;
    animation: scaleIn 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

/* Contact Section 基础样式 */
.contact-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #9D4008;
    margin-top: 0px;
    z-index: 2;
}

.contact-bg {
    width: 100%;
    height: 705px;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    background-image: url('../images/hero-bg.jpg'); /* 更换为你想要的背景图片 */
}

.content-wrapper {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -60%);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-card {
    width: 235px;
    height: 200px;
    background: #F8EDE3;
    border-radius: 30px;
    border: 1px solid #BE4A31;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

 
@media screen and (min-width: 390px) and (max-width: 430px) {
    /* 基础布局设置 */
    body {
        width: 100%;
        max-width: 100%;
        padding-top: 40px;
        overflow-x: hidden;
        margin: 0;
    }

    /* 导航栏设置 */
    .navbar {
        height: 40px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        position: fixed;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        width: 100px;
        height: 40px;
    }

    .hamburger {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 14px;
    }

    /* Hero Section */
    .hero-section {
        width: 100%;
        height: 450px;
        margin: 5px auto 0;
        position: relative;
        z-index: 1;
        padding: 20px;
    }

    .HeroImages {
        width: 90%;
        height: 65%;
        border-radius: 30px;
        object-fit: cover;
        position: absolute;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .BrownFrame {
        width: 100%;
        height: 400px;
        background: #9D4008;
        position: relative;
    }

    /* Contact Section 调整 */
    .contact-section {
        width: 100%;
        position: relative;
        z-index: 2;
        overflow: hidden;
        background-color: #FFFDF8;
        min-height: 110vh;
    }

    /* 隐藏原来的背景图 */
    .contact-bg {
        display: none;
    }

    .content-wrapper {
        position: absolute;
        width: 92%;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px;
        z-index: 2;
    }

    /* Contact Cards 位置调整 */
    .contact-cards {
        flex-direction: column;
        gap: 15px;
        width: 92%;
    }

    .picture-box {
        width: 100%;
        height: 100px;
        margin-bottom: 10px;
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        background-color: #F8EDE3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .picture-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 30px;
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    /* Location button adjustments */
    .location-btn {
        width: 140px;
        height: 35px;
        border-radius: 20px;
        font-size: 18px;
        bottom: 8px;
        margin-top: 8px;
        font-weight: 700;
        font-family: 'Afacad', sans-serif;
    }

    /* Adjust address card spacing */
    .address {
        padding-bottom: 45px;
    }

    /* Adjust address text spacing */
    .address p {
        margin-bottom: 5px;
    }

    .card-line {
        margin-bottom: 10px;
    }
}

.get-in-touch-title {
    color: #9D4008;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-line {
    width: 100%;
    max-width: 770px;
    height: 0;
    border: 1px solid #9D4008;
    margin: 0 auto 30px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-content {
    width: 689px;
    margin: 0 auto;
    color: #9D4008;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(190, 74, 49, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card h2 {
    color: #BE4A31;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.contact-card p {
    color: #BE4A31;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.follow-btn {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 26px;
    background: #BE4A31;
    border-radius: 17px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Afacad', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #F8EDE3;
    color: #BE4A31;
    border: 0.5px solid #BE4A31;
    transform: translateX(-50%) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(190, 74, 49, 0.2);
}

.location-section {
    padding: 40px;
    text-align: center;
    opacity: 0; /* 初始状态透明 */
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.location-title,
.location-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.location-title {
    color: #FFFDF8;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    margin-bottom: 10px;
}

.location-line {
    width: 100%;
    max-width: 770px;
    height: 0;
    border: 1px solid #FFFDF8;
    margin: 0 auto 30px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-content {
    width: 689px;
    margin: 0 auto 40px;
    color: white;
    font-size: 18px;
    line-height: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-content .bold {
    font-weight: 600;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0; /* 初始状态为透明 */
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.picture-box {
    width: 361px;
    height: 375px;
    border-radius: 30px;
    border: 1px solid #BE4A31;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.picture-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    width: 383px;
    background: #FFFDF8;
    border-radius: 30px;
    border: 1px solid #BE4A31;
    padding: 18px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 220, 212, 0.25);
}

.opening-hours {
    height: 147px;
}

.address {
    height: 198px;
    position: relative;
    padding-bottom: 60px;
}

.location-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 26px;
    background: #BE4A31;
    border-radius: 17px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Afacad', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #F8EDE3;
    color: #BE4A31;
    border: 0.5px solid #BE4A31;
    transform: translateX(-50%) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(190, 74, 49, 0.2);
}

.card h2 {
    color: #BE4A31;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 10px;
}

.card-line {
    width: 301px;
    height: 0;
    border: 1px solid #BE4A31;
    margin: 0 auto 15px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card p {
    color: #BE4A31;
    font-size: 20px;
    font-weight: 600;
    margin: 1px 0;
}

.address-text {
    padding: 0 20px;
    line-height: 1.4;
}

/* 背景图样式 */
.contact-bg {
    width: 100%;
    height: 705px;
    object-fit: cover;
    opacity: 0; /* 初始状态为透明 */
    transition: opacity 1s ease; /* 添加过渡效果 */
}

/* 其他元素的初始样式 */
.content-wrapper,
.contact-line,
.contact-content,
.contact-cards {
    opacity: 0; /* 初始状态为透明 */
    transition: opacity 0.8s ease; /* 添加过渡效果 */
}

/* 修改导航栏中 CONTACT 链接的颜色 */
.nav-links a[href="contact us.html"] {
    color: #c2500a;  /* 更亮的橙色 */
    font-weight: 400;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 移除这链接的下划线效果 */
.nav-links a[href="contact us.html"]::after {
    display: none;
}

/* 保持hover效果 */
.nav-links a[href="contact us.html"]:hover {
    color: #c2500a;
    transform: translateY(-2px);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .nav-links a[href="contact us.html"] {
        background-color: rgba(157, 64, 8, 0.1);
    }
}


#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 40px;
    height: 40px;
    outline: 1px solid white;
    background-color: #9D4008;
    color: #F8EDE3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#backToTop:hover {
    background-color: #B64807;
    transform: translateY(-3px);
}

/* 手机端调整 */
@media screen and (max-width: 430px) {
    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.ReviewBg {
    width: 100%;
    height: auto;
}
/* 照播样式 */
.photo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 50px 0;
    margin-top: -80px;
    margin-bottom: -50px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 0;
    width: fit-content;
}

.slide {
    flex: 0 0 250px;
    width: 250px;
    height: 300px;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-flex-shrink: 0;
}

/* 添加滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 12)); /* 移动第组图片的总宽度 */
    }
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .slide {
        flex: 0 0 200px;
        width: 200px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 12));
        }
    }
}

@media screen and (max-width: 430px) {
    .slide {
        flex: 0 0 100px;
        width: 180px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-180px * 12));
        }
    }
}

/* 添加鼠标悬停暂效果 */
.slider-track:hover {
    animation-play-state: paused;
}

.footer {
    position: relative;
    margin-top: 0px;
    width: 100%;
    height: 100%;
    margin-bottom: -100px; /* 确保footer底部没有margin */
    display: block; /* 防止任何意外的间距 */
    padding: 0; /* 确保没有内边距影响 */
}

.footer-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.footer-logo {
    width: 200px;
    height: 80px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: white;
    font-size: 18px;
    font-family: 'Modak', cursive;
    text-decoration: none;
    transition: all 0.3s ease;
    /* 添加以下文字渲优化属性 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.3px;  /* 稍微增加字间距提高可读性 */
}

.footer-nav a:hover {
    color: #FFF6C7;  /* 鼠标悬停时改变文字颜色 */
    transform: translateY(-2px);  /* 轻微向移动 */
}

.social-icons {
    display: flex;
    gap: 64px;
    margin-bottom: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease; /* 稍微延长动画时间使旋转更流 */
}

.social-icon:hover {
    transform: scale(1.2) rotate(360deg);
    cursor: pointer;
}

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.footer-line {
    width: 1189px;
    height: 1px;
    background-color: white; /* 改用background-color替代border */
    margin: 20px auto; /* 中显示 */
    opacity: 1; /* 确保可见性 */
    display: block; /* 确保显示为块级元素 */
}

/* 或者使用border式 */
.footer-line {
    width: 1189px;
    border: 0.3px solid white;
    margin: 10px auto;
    display: block;
}

.copyright {
    color: white;
    font-size: 12px;
    font-family: 'Libre Caslon Text', serif;
    line-height: 40px;
    text-align: center;
}

/* 平板设备响应式调整 (391px-768px) */
@media screen and (min-width: 431px) and (max-width: 912px) {
    .contact-section {
        width: 100%;
        position: relative;
        overflow: hidden;
        background-color:#FFFDF8;
        min-height: 45vh;
        margin-top: 1%;
    }

    .contact-bg{
        display: none;
    }

    .content-wrapper {
        position: absolute;
        width: 92%;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        padding: 20px 0;
    }

    .get-in-touch-title {
        font-size: 45px;
        margin-bottom: 15px;
    }

    .contact-content {
        width: 92%;
        font-size: 17px;
        line-height: 1.6;
        margin: 15px auto 30px;
    }

    /* Contact Cards adjustments */
    .contact-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);  /* Three cards in a row */
        gap: 20px;
        width: 92%;
        margin: 0 auto;
    }

    .contact-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 20px;
        position: relative;
    }

    .contact-card h2 {
        font-size: 22px;
    }

    .contact-card p {
        font-size: 14px;
        margin: 10px 0 35px;
    }

    .follow-btn {
        width: 105px;
        height: 26px;
        font-size: 14px;
        bottom: 15px;
    }

    /* Location Section adjustments */
    .location-section {
        margin-top: 50px;
        padding: 40px 20px;
    }

    .main-content {
        width: 92%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;  /* Stack items vertically */
        gap: 25px;
    }

    .info-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);  /* Two cards side by side */
        gap: 20px;
    }

    .card {
        width: 100%;
        padding: 20px;
        margin-top: 50px;
    }

    /* Adjust card text sizes */
    .card h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* Map adjustments */
    .picture-box {
        width: 100%;
        height: 400px;  /* Taller map for tablets */
        margin: 0;
        border-radius: 30px;
    }

    /* Location button adjustments */
    .location-btn {
        width: 130px;
        height: 32px;
        font-size: 16px;
        bottom: 15px;
    }

    .address {
        padding-bottom: 50px;  /* Space for button */
    }

  .slider-container{
    margin-bottom: -50px;
  }  

  .footer-background{
    margin-top: 0px;
  }

    /* Photo Slider */
    .slide {
        flex: 0 0 180px;
        width: 180px;
        height: 220px;
    }

    /* Footer */
    .footer-content {
        padding: 20px;
    }

    .footer-nav {
        gap: 20px;
    }

    .footer-line {
        width: 85%;
    }

}

/* 确保动画在所有设备正常工作 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-140px * 12));
    }
}

@media screen and (min-width: 391px) {
    @keyframes scroll {
        100% {
            transform: translateX(calc(-180px * 12));
        }
    }
}

@media screen and (min-width: 390px) and (max-width: 430px) {
/* Location Section 基础样式修改 */
.location-section {
    width: 100%;
    position: relative;
    overflow: hidden; /* 防止动画导致溢出 */
}



    /* 基础布局调整 */
    body {
        padding-top: 40px;
        overflow-x: hidden;
        width: 100%;
    }

    /* 导航栏调整 */
    .navbar {
        height: 40px;
        padding: 0 15px;
    }

    /* Hero Section 调整 */
    .hero-section {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .HeroImages {
        width: 92%;
        height: 350px;
        border-radius: 20px;
        margin-top: 10px;
    }

    /* Contact Section 调整 */
    .contact-section {
        margin-top: -50px;
        min-height: 115vh;
        padding: 0;
        width: 100%;
    }

    .content-wrapper {
        width: 92%;
        padding: 20px 0;
        top: 40%;
    }

    .get-in-touch-title {
        font-size: 40px;
        margin-bottom: 0px;
        margin-top: 200px;
    }

    .contact-content {
        width: 92%;
        font-size: 16px;
        line-height: 1.5;
        margin: 10px auto 30px;
    }

    /* Contact Cards 调整 */
    .contact-cards {
        width: 92%;
        margin: 0 auto;
        gap: 15px;
    }

    .contact-card {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 20px;
        margin-bottom: 0px;
    }

    /* Location Section 调整 */
    .location-section {
        padding: 0px 0;
        margin-top:30px;
    }

    .location-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .location-content {
        width: 92%;
        font-size: 16px;
        line-height: 1.5;
        margin: 10px auto 20px;
    }

    .main-content {
        width: 92%;
        margin: 0 auto;
        flex-direction: column;
        gap: 20px;
    }

    .picture-box {
        width: 100%;
        height: 250px;
        margin-bottom: 15px;
    }

    .info-cards {
        width: 100%;
    }

    .card {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Photo Slider 调整 */
    .photo-slider {
        margin-top: 10px;
        padding: 0px 0;
        background-color: transparent;
    }

    .slide {
        flex: 0 0 150px;
        width: 150px;
        height: 190px;
    }

    .contact-line,
    .location-line {
        width: 92%;
        margin: 5px auto;
    }

    /* 确保所有容器不会溢出 */
    .container {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        overflow-x: hidden;
    }

    .main-content {
        width: 92%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .picture-box {
        width: 100%;
        height: 280px;
        margin-bottom: 15px;
        border-radius: 30px;
        overflow: hidden;
    }

    .info-cards {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 30px;
    }

    .opening-hours,
    .address {
        width: 100%;
        margin-bottom: 5px;
    }

    /* 确保卡片内容正确对齐 */
    .card h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* 调整地址卡片的按钮位置 */
    .address {
        padding-bottom: 10px;
    }

    .location-btn {
        width: 140px;
        height: 35px;
        border-radius: 20px;
        font-size: 18px;
        bottom: 40px;
        margin-top: 8px;
        font-weight: 700;
        font-family: 'Afacad', sans-serif;
    }

    /* Adjust address text spacing */
    .address p {
        margin-bottom: 5px;
    }

    .card-line {
        margin-bottom: 10px;
    }

    .contact-cards {
        width: 92%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-card {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 20px;
        margin-bottom: 0;
        border-radius: 30px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: #F8EDE3;
        border: 1px solid #BE4A31;
    }

    .contact-card h2 {
        color: #BE4A31;
        font-size: 25px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .contact-card p {
        color: #BE4A31;
        font-size: 15px;
        line-height: 1.4;
        margin: 0 auto;
        width: 90%;
        margin-bottom: 25px;
    }

    .follow-btn,
    .chat-btn {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 105px;
        height: 26px;
        background: #BE4A31;
        border-radius: 17px;
        border: none;
        color: white;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .follow-btn:hover,
    .chat-btn:hover {
        background: #F8EDE3;
        color: #BE4A31;
        border: 0.5px solid #BE4A31;
    }

    .ReviewBg{
        display:none;
    }
        .slider-container {
            width: 100%;
            height: 100%;
            padding: 0;
        }
    
        .slide {
            flex: 0 0 150px;
            width: 150px;
            height: 190px;
            margin: 0;
            overflow: hidden;
            flex-shrink: 0;
        }
    
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    
        /* Footer 移动端样式 */
        .footer {
            width: 100%;
            height: 420px;
            background: #9D4008;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            z-index: 3;
            margin-top: 30px;
            padding-top: 20px;
        }
    
        .footer-background {
            display: none;
        }
    
        .footer-logo {
            width: 150px;
            height: auto;
            margin-top: -60px;
            margin-bottom: 20px;
        }
    
        .footer-nav {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
    
        .footer-line {
            width: 100%;
            height: 0.1px;
            background-color: white;
            margin: 0px auto 10px;
        }
    
        .social-icons {
            display: flex;
            gap: 30px;
            margin-bottom: 15px;
            justify-content: center;
        }
    
        .copyright {
            color: white;
            font-size: 10px;
            font-family: 'Libre Caslon Text', serif;
            text-align: center;
            margin: -10px auto -5px;
        }

}

@media screen and (min-width: 360px)and (max-width:375px) {

    body {
        width: 100%;
        max-width: 100%;
        padding-top: 40px;
        overflow-x: hidden;
        margin: 0;
    }

    /* 导航栏设置 */
    .navbar {
        height: 40px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        position: fixed;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        width: 100px;
        height: 40px;
    }

    .hamburger {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 14px;
    }

    /* Hero Section */
    .hero-section {
        width: 100%;
        height: 450px;
        margin: 5px auto 0;
        position: relative;
        z-index: 1;
        padding: 20px;
    }

    .HeroImages {
        width: 90%;
        height: 65%;
        border-radius: 30px;
        object-fit: cover;
        position: absolute;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .BrownFrame {
        width: 100%;
        height: 400px;
        background: #9D4008;
        position: relative;
    }

    /* Contact Section 调整 */
    .contact-section {
        width: 100%;
        position: relative;
        z-index: 2;
        overflow: hidden;
        background-color: #FFFDF8;
        min-height: 120vh;
    }

    /* 隐藏原来的背景图 */
    .contact-bg {
        display: none;
    }

    .content-wrapper {
        position: absolute;
        width: 92%;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px;
        z-index: 2;
    }

    /* Contact Cards 位置调整 */
    .contact-cards {
        flex-direction: column;
        gap: 15px;
        width: 92%;
    }

    .picture-box {
        width: 100%;
        height: 100px;
        margin-bottom: 10px;
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        background-color: #F8EDE3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .picture-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 30px;
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    /* Location button adjustments */
    .location-btn {
        width: 140px;
        height: 35px;
        border-radius: 20px;
        font-size: 18px;
        bottom: 8px;
        margin-top: 8px;
        font-weight: 700;
        font-family: 'Afacad', sans-serif;
    }

    /* Adjust address card spacing */
    .address {
        padding-bottom: 45px;
    }

    /* Adjust address text spacing */
    .address p {
        margin-bottom: 5px;
    }

    .card-line {
        margin-bottom: 10px;
    }

    .location-section {
        width: 100%;
        position: relative;
        overflow: hidden; /* 防止动画导致溢出 */
    }
    
    
    
        /* 基础布局调整 */
        body {
            padding-top: 40px;
            overflow-x: hidden;
            width: 100%;
        }
    
        /* 导航栏调整 */
        .navbar {
            height: 40px;
            padding: 0 15px;
        }
    
        /* Hero Section 调整 */
        .hero-section {
            margin: 0;
            padding: 0;
            width: 100%;
        }
    
        .HeroImages {
            width: 92%;
            height: 350px;
            border-radius: 20px;
            margin-top: 10px;
        }
    
        /* Contact Section 调整 */
        .contact-section {
            margin-top: -50px;
            padding: 0;
            width: 100%;
        }
    
        .content-wrapper {
            width: 92%;
            padding: 20px 0;
            top: 40%;
        }
    
        .get-in-touch-title {
            font-size: 40px;
            margin-bottom: 0px;
            margin-top: 120px;
        }
    
        .contact-content {
            width: 92%;
            font-size: 16px;
            line-height: 1.5;
            margin: 10px auto 30px;
        }
    
        /* Contact Cards 调整 */
        .contact-cards {
            width: 92%;
            margin: 0 auto;
            gap: 15px;
        }
    
        .contact-card {
            width: 100%;
            height: auto;
            min-height: 180px;
            padding: 20px;
            margin-bottom: 0px;
        }
    
        /* Location Section 调整 */
        .location-section {
            padding: 0px 0;
            margin-top:30px;
        }
    
        .location-title {
            font-size: 36px;
            margin-bottom: 15px;
        }
    
        .location-content {
            width: 92%;
            font-size: 16px;
            line-height: 1.5;
            margin: 10px auto 20px;
        }
    
        .main-content {
            width: 92%;
            margin: 0 auto;
            flex-direction: column;
            gap: 20px;
        }
    
        .picture-box {
            width: 100%;
            height: 250px;
            margin-bottom: 15px;
        }
    
        .info-cards {
            width: 100%;
        }
    
        .card {
            width: 100%;
            margin-bottom: 15px;
        }
    
        /* Photo Slider 调整 */
        .photo-slider {
            margin-top: 10px;
            padding: 0px 0;
            background-color: transparent;
        }
    
        .slide {
            flex: 0 0 150px;
            width: 150px;
            height: 190px;
        }
    
        .contact-line,
        .location-line {
            width: 92%;
            margin: 5px auto;
        }
    
        /* 确保所有容器不会溢出 */
        .container {
            width: 100%;
            max-width: 430px;
            margin: 0 auto;
            overflow-x: hidden;
        }
    
        .main-content {
            width: 92%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
    
        .picture-box {
            width: 100%;
            height: 280px;
            margin-bottom: 15px;
            border-radius: 30px;
            overflow: hidden;
        }
    
        .info-cards {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
    
        .card {
            width: 100%;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 30px;
        }
    
        .opening-hours,
        .address {
            width: 100%;
            margin-bottom: 5px;
        }
    
        /* 确保卡片内容正确对齐 */
        .card h2 {
            font-size: 22px;
            margin-bottom: 10px;
        }
    
        .card p {
            font-size: 16px;
            line-height: 1.5;
        }
    
        /* 调整地址卡片的按钮位置 */
        .address {
            padding-bottom: 10px;
        }
    
        .location-btn {
            width: 140px;
            height: 35px;
            border-radius: 20px;
            font-size: 18px;
            bottom: 40px;
            margin-top: 8px;
            font-weight: 700;
            font-family: 'Afacad', sans-serif;
        }
    
        /* Adjust address text spacing */
        .address p {
            margin-bottom: 5px;
        }
    
        .card-line {
            margin-bottom: 10px;
        }
    
        .contact-cards {
            width: 92%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
    
        .contact-card {
            width: 100%;
            height: auto;
            min-height: 180px;
            padding: 20px;
            margin-bottom: 0;
            border-radius: 30px;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background-color: #F8EDE3;
            border: 1px solid #BE4A31;
        }
    
        .contact-card h2 {
            color: #BE4A31;
            font-size: 25px;
            font-weight: 700;
            margin-bottom: 8px;
        }
    
        .contact-card p {
            color: #BE4A31;
            font-size: 15px;
            line-height: 1.4;
            margin: 0 auto;
            width: 90%;
            margin-bottom: 25px;
        }
    
        .follow-btn,
        .chat-btn {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            width: 105px;
            height: 26px;
            background: #BE4A31;
            border-radius: 17px;
            border: none;
            color: white;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }
    
        .follow-btn:hover,
        .chat-btn:hover {
            background: #F8EDE3;
            color: #BE4A31;
            border: 0.5px solid #BE4A31;
        }
    
        .ReviewBg{
            display:none;
        }
            .slider-container {
                width: 100%;
                height: 100%;
                padding: 0;
            }
        
            .slide {
                flex: 0 0 150px;
                width: 150px;
                height: 190px;
                margin: 0;
                overflow: hidden;
                flex-shrink: 0;
            }
        
            .slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
        
            /* Footer 移动端样式 */
            .footer {
                width: 100%;
                height: 420px;
                background: #9D4008;
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                position: relative;
                z-index: 3;
                margin-top: 30px;
                padding-top: 20px;
            }
        
            .footer-background {
                display: none;
            }
        
            .footer-logo {
                width: 150px;
                height: auto;
                margin-top: -60px;
                margin-bottom: 20px;
            }
        
            .footer-nav {
                display: flex;
                flex-direction: column;
                gap: 15px;
                margin-bottom: 20px;
            }
        
            .footer-line {
                width: 100%;
                height: 0.1px;
                background-color: white;
                margin: 0px auto 10px;
            }
        
            .social-icons {
                display: flex;
                gap: 30px;
                margin-bottom: 15px;
                justify-content: center;
            }
        
            .copyright {
                color: white;
                font-size: 10px;
                font-family: 'Libre Caslon Text', serif;
                text-align: center;
                margin: -10px auto -5px;
            }
    
}

@media screen and (min-width: 1441px){

    .slider-container{
        margin-top: 35px;
    }

    .ReviewBg{
        display:none;
    }

    .footer {
        position: relative;
        width: 100%;
        height: 300px;
        margin: 0;
        background: #9D4008;
    }

    .footer-background {
        display: none;
    }

    .footer-content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 1800px;
        margin: 0 auto;
        height: 100%;
        padding: 40px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .footer-nav {
        margin-bottom: 30px;
    }

    .social-icons {
        margin-bottom: 30px;
    }

    .footer-line {
        width: calc(100% + 40px); /* 让线条超出content区域 */
        border: 0.3px solid white;
        margin: 0 -20px 10px -20px; /* 使用负margin来延伸线条 */
    }

    .copyright {
        margin-bottom: 10px;
    }
}
